package com.larissa.android.note;

import androidx.lifecycle.ViewModel;

import java.util.Date;
import java.util.UUID;

public class CreateNoteViewModel extends ViewModel {
    private NoteRepository noteRepository=NoteRepository.getInstance();

    public void createNote(Note note){
        note.setDate(new Date());
        note.setStatus("Created");
        note.setId(UUID.randomUUID());
        noteRepository.addNote(note);
    }

}
